﻿using System;
using UnityEngine;
using UnityEngine.EventSystems;

// Token: 0x02000429 RID: 1065
public class Title_Debug : MonoBehaviour
{
	// Token: 0x1700027F RID: 639
	// (get) Token: 0x06001A4F RID: 6735 RVA: 0x000A8240 File Offset: 0x000A6440
	private GameControl GameCtrl
	{
		get
		{
			if (this._gameCtrl == null)
			{
				this._gameCtrl = UnityEngine.Object.FindObjectOfType<GameControl>();
			}
			return this._gameCtrl;
		}
	}

	// Token: 0x06001A50 RID: 6736 RVA: 0x000A8264 File Offset: 0x000A6464
	private void Start()
	{
		this.canvas = base.GetComponent<Canvas>();
	}

	// Token: 0x06001A51 RID: 6737 RVA: 0x000A8274 File Offset: 0x000A6474
	private void Update()
	{
		if (EventSystem.current != null && EventSystem.current.currentSelectedGameObject != null)
		{
			return;
		}
		if (Input.GetKeyDown(KeyCode.Delete))
		{
			this.canvas.enabled = !this.canvas.enabled;
		}
	}

	// Token: 0x06001A52 RID: 6738 RVA: 0x000A82CC File Offset: 0x000A64CC
	public void SceneChange_H()
	{
		this.GameCtrl.ChangeScene("H", string.Empty, -1f);
	}

	// Token: 0x06001A53 RID: 6739 RVA: 0x000A82E8 File Offset: 0x000A64E8
	public void SceneChange_ADV(string message)
	{
		this.GameCtrl.ChangeScene("ADVScene", message, -1f);
	}

	// Token: 0x04001D2A RID: 7466
	private Canvas canvas;

	// Token: 0x04001D2B RID: 7467
	private GameControl _gameCtrl;
}
